<?php
/* 
 * Copyright (c) 2018-2021   All rights reserved.
 *
 * 创建时间：2021-12-04 11:36:26
 *
 * 项目：/levs  -  $  - levUsersLoginModelHelper.php
 *
 * 作者：{{AUTO GENERATE}}
 */

//此文件使用程序自动生成，下次生成时【不会】覆盖。
//在这里可以补充、完善你的程序逻辑

namespace modules\levs\table\lev_users_login;

use Lev;
use modules\levs\table\lev_users\levUsersModelHelper;

!defined('INLEV') && exit('Access Denied LEV');

class BaseLevUsersLoginModelMiddle extends BaseLevUsersLoginModel
{

    public static function saveForm($formPre = 'datax', $route = '', $form = null, $upData = null, $upDataForce = null, $opInfo = null)
    {
        return parent::saveForm($formPre, $route, $form, $upData, $upDataForce, $opInfo); // TODO: Change the autogenerated stub
    }

    /**
     * 额外的表单字段，不会存入数据库
     * @return array
     */
    public static function extInputs()
    {
        return parent::extInputs(); // TODO: Change the autogenerated stub
    }

    public static function headerHtm()
    {
        return parent::headerHtm(); // TODO: Change the autogenerated stub
        //return '<tips class="gray inblk scale8">自定义headerHtm：文件位置：'.__DIR__ . '/levUsersLoginModelHelper.php'.'</tips>';
    }

    public static function footerHtm()
    {
        return parent::footerHtm(); // TODO: Change the autogenerated stub
        //return '<tips class="gray inblk scale8">自定义footerHtm</tips>';
    }

    public static function footerFormInnerHtm()
    {
        return parent::footerFormInnerHtm(); // TODO: Change the autogenerated stub
        //return '<tips class="gray inblk scale8">自定义footerFormInnerHtm</tips>';
    }

    public static function adminop($adminop)
    {
        if ($rmsg = Lev::actionOnce('levUsersLoginModelHelper::adminop')) {
            return $rmsg;
        }

        $resp = parent::adminop($adminop); // TODO: Change the autogenerated stub
        if (!isset($rs['error']) && $adminop === 'setStatus') {
            $rs['titleMsg'] = levUsersModelHelper::adminop($adminop);
        }
        return $resp;
    }

    public static function adminDeleteIds($optab = '', array $ids = [])
    {
        if ($rmsg = Lev::actionOnce('levUsersLoginModelHelper::adminDeleteIds')) {
            return $rmsg;
        }

        $rs = parent::adminDeleteIds($optab, $ids); // TODO: Change the autogenerated stub
        if (!isset($rs['error'])) {
            $rs['titleMsg'] = levUsersModelHelper::adminDeleteIds($optab, $ids);
        }
        return $rs;
    }

    public static function deleteAllWhere($where = [], $reload = 1)
    {
        if ($rmsg = Lev::actionOnce('levUsersLoginModelHelper::deleteAllWhere')) {
            return $rmsg;
        }

        $rs = parent::deleteAllWhere($where, $reload); // TODO: Change the autogenerated stub
        if (!isset($rs['error'])) {
            $rs['titleMsg'] = levUsersModelHelper::deleteAllWhere($where, $reload);
        }
        return $rs;
    }

}


class levUsersLoginModelHelper extends BaseLevUsersLoginModelMiddle {

    public static function allColumns()
    {
        return parent::allColumns(); // TODO: Change the autogenerated stub
    }

    public static function safeColumnsInpus($columns)
    {
        return parent::safeColumnsInpus($columns); // TODO: Change the autogenerated stub
    }

    public static function setFormSettings($settings, $result = [])
    {
        return parent::setFormSettings($settings, $result); // TODO: Change the autogenerated stub
    }

    public static function saveInputs($datas, $where = [], $inId = false, $tables = [], $inputs = [], $formSet = true, $tablesFormData = [])
    {
        return parent::saveInputs($datas, $where, $inId, $tables, $inputs, $formSet, $tablesFormData); // TODO: Change the autogenerated stub
    }

    public static function getNextSetup()
    {
        return parent::getNextSetup(); // TODO: Change the autogenerated stub
    }

    public static function inputsSetup()
    {
        return parent::inputsSetup(); // TODO: Change the autogenerated stub
    }

    public static function setupDesc()
    {
        return parent::setupDesc(); // TODO: Change the autogenerated stub
    }

}